import http from '../http_request.js'; //引进requst方法


export const userinfo = (data) => { // 个人信息接口
	return http.getrequest('user/info',data)
}
export const companyinfo = (data) => { // 个人信息接口
	return http.getrequest('company/list',data)
}
export const userindex = (data) => { // 首页数据
	return http.getrequest('user/index',data)
}
export const userhisindex = (data) => { // 首页历史-数据
	return http.getrequest('user/historydata',data)
}
export const userindex_info = (data) => { // 首页数据列表数据
	return http.getrequest('user/index_info',data)
}
export const useredit = (data) => { // 个人信息修改接口
	return http.postrequest('user/information',data)
}

export const userfaceveif = (data) => { // 人脸对比
			data.choosetype="face";
	return http.imguploadFile('user/verify',data)
}
export const userchangepwd = (data) => { // 修改密码
	return http.imguploadFile('user/changepwd',data)
}

export const userman = (data) => { // 公司(部门)内部人员-
	return http.getrequest('user/intstaff',data)
}
export const usergetlist = (data) => { // 长期访客列表
	return http.getrequest('user/getlist',data)
}
export const userlist = (data) => { // 获取用户列表
	return http.getrequest('user/ulist',data)	
}
export const codeadd_qrcode = (data) => { // 生成二维码，参数type类型，companyid公司id
	return http.getrequest('code/add_qrcode',data)
}
export const codeget_qrcode= (data) => { // 访客列表
	return http.getrequest('code/get_qrcode',data)
}
export const userbind= (data) => { //绑定手机号+密码
	return http.postrequest('user/binding',data)
}
export const uCAPTCHA= (data) => { //发送验证码
	return http.getrequest('user/send',data)
}
export const commoditygetlist= (data) => { //会员套餐列表
	return http.getrequest('commodity/getlist',data)
}
export const commoditygetsyslist= (data) => { //会员套餐列表
	return http.getrequest('commodity/getsyslist',data)
}

// export const commoditychcommodity= (data) => { //会员添加/修改/套餐/改变支付订单
// 	return http.postrequest('commodity/chcommodity',data)
// }

export const addsurveyed= (data) => { //添加受访人
	return http.postrequest('appointment/chappuser',data)
}

export const cancelsurveyed= (data) => { //删除受访人
	return http.getrequest('commodity/getlist',data)
}
export const userpassu= (data) => { //测试密码
	return http.postrequest('user/passu',data)
}
export const codescancode= (data) => { //访客提交
	return http.postrequest('code/scancode',data)
}
export const idcardupcache= (data) => { //身份证缓存
	return http.postrequest('user/upcache',data)
}
export const userdelcache= (data) => { //身份证缓存
	return http.postrequest('user/delcache',data)
}



export const usermustbe= (data) => { //身份证缓存
	return http.postrequest('user/mustbe',data)
}

export const noticelist= (data) => { //消息列表
	return http.getrequest('notice/list',data)
}

export const noticeinfo= (data) => { //消息详情
	return http.getrequest('notice/info',data)
}
export const usereasyreg= (data) => { //简单注册
	return http.postrequest('user/easyreg',data)
}

export const integratelist= (data) => { //消费记录
	return http.getrequest('integrate/list',data)
}

export const userlogout= (data) => { //个人注销功能
	return http.postrequest('user/logout',data)
}
export const companylogout= (data) => { //公司注销功能
	return http.postrequest('company/logout',data)
}
